/*
 * @FilePath: /cpp_study/ch05/formore.cpp
 * @Description: for循环更多特性
 * @Author: dengrunting
 * @Date: 2022-01-07 18:23:04
 * @LastEditTime: 2022-01-07 18:28:52
 */
#include<iostream>

const int ArSize = 16;

int main(){
    long long factorials[ArSize];
    factorials[1] = factorials[0] = 1LL;
    for (int i =2; i < ArSize; i++){
        factorials[i] = i * factorials[i-1];
    }
    for (int i = 0; i < ArSize; i ++){
        std::cout << i << "!=" << factorials[i] << std::endl;
    }

    return 0;
}
